<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>汇款执行</title>
<jsp:include page="../../../common/head.jsp">
	  <jsp:param name="_useCalendar" value="true"/>
</jsp:include>
<script language="javascript">
	function saveData(){

		var objarr = new Array(
			["feeReport.billCountTol","凭证张数","int","3"],
			["feeReport.certificateNoStart","凭证起始号","int","5"],
			["feeReport.certificateNoEnd","凭证终止号","int","5"],
			["feeReport.remitRemark","备注","max","String:500"]
		);
		if(xj.CheckAll(objarr))
		{
			if(confirm("确认保存？"))
			{
				document.getElementById("form1").submit();
			}
		}
	}

	//返回
	function goback()
	{
		window.top.close();
	}

	//将select的option的text放入hidden
	function selectOption(objSelect,hiddenId)
	{
		$("#"+hiddenId).val($(objSelect).find("option:selected").text());
	}
</script>

</head>
<body>
<form name="form1" id="form1"  action="updateFeeReimbursement.do" method="post">
	<input type="hidden" name="feeReportId" value="${feeReport.feeReportId}"/>
	<div id="body_div">
	<w:ShowTitle name="汇款执行">
	<w:TitleButton funcName="保存" onClickFunction="saveData()" urlImg="${ctx}/images/main/save.png"/>
	<w:TitleButton funcName="返回" onClickFunction="goback()" urlImg="${ctx}/images/main/back.png"/>
	</w:ShowTitle>
	<div id="body_content">
	<table width="100%">
            <tr>
              <td width="120" class="right_align">企业名称</td>
              <td class="left_align">
				<input type="hidden" id="remitCompanyName" name="feeReport.remitCompanyName" value="${feeReport.remitCompanyName}"/>
              	<input type="text" class="selectValueFilter" style="${style}"/>
              	<w:select name="feeReport.remitCompany" styleId="remitCompany" value="${feeReport.remitCompany}" onchange="selectOption(this,'remitCompanyName')" >
					<w:option optionLabel="请选择" optionValue=""></w:option>
					<w:options options="${CodeDict}" optionLabel="codeName" optionValue="codeId" filterFieldName="parentCodeId" filterFieldValue="008"></w:options>
				</w:select>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">凭证张数</td>
              <td class="left_align">
              	<input type="text" name="feeReport.billCountTol" id="billCountTol" value="${feeReport.certificateCountTol}"/>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">凭证起始号</td>
              <td class="left_align">
              	<input type="text" name="feeReport.certificateNoStart" id="certificateNoStart" value="${feeReport.certificateNoStart}"/>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">凭证终止号</td>
              <td class="left_align">
              	<input type="text" name="feeReport.certificateNoEnd" id="certificateNoEnd" value="${feeReport.certificateNoEnd}"/>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">汇款执行人</td>
              <td class="left_align">
              	${sessionScope.sessionbean.userName}
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">汇款执行日期</td>
              <td class="left_align">
              	<input type="text" name="feeReport.remitDate" value="${wfn:getDateTime("yyyy-MM-dd")}" onfocus="new WdatePicker()" readonly="readonly" class="inputCal"/>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">汇款执行状态</td>
              <td class="left_align">
              	<w:select name="feeReport.remitState" styleId="remitState" value="${feeReport.remitState}">
					<w:option optionLabel="付款" optionValue="付款"></w:option>
					<w:option optionLabel="预留" optionValue="预留"></w:option>
					<w:option optionLabel="不付款" optionValue="不付款"></w:option>
				</w:select>
			  </td>
			 </tr>
			<tr>
              <td width="80" class="right_align">备注</td>
              <td class="left_align">
              	<textarea rows="5" cols="80" name="feeReport.remitRemark">${feeReport.remitRemark}</textarea>
			  </td>
			 </tr>
			
          </table>
	</div>
	</div>	
</form>
</body>
</html> 